﻿@model S4Store.Models.TelSaleKpi.InputTelSaleKpiDayDataModel
@{
    Layout = null;
    ViewBag.Title = "InputSellerKpiDayData";
    S4Store.Domain.Administrator CurrentUser = (S4Store.Domain.Administrator)ViewBag.CurrentUser;
}
<form class="pageForm addpage" action="@Url.Action("ModifyBackInputTelSaleKpiDayData")" method="post">
<div class="verticalSplitContainer" style="height:100%;width:100%; overflow:hidden">
<div ratio="#132">
<table  style="border-collapse:collapse;" class="rpttable">
 <thead class="fixedHeader">
 <tr class="vtr">
  <th><div class="wd40 pd510">车型</div></th>
  <th><div class="wd20 pd510">厂方广告获取信息数</div></th>
  <th><div class="wd20 pd510">自店广告获取信息数</div></th>
  <th><div class="wd20 pd510">电话登记表登记客户数</div></th>
  <th><div class="wd20 pd510">12小时电话回复数</div></th>
  <th><div class="wd20 pd510">线上转来店客户数</div></th>
  <th><div class="wd20 pd510">来店客户信息录入数</div></th>
  <th><div class="wd20 pd510">交车数</div></th>
  <th><div class="wd20 pd510">电话销售目标</div></th>
  <th><div class="wd20 pd510">网站获取信息数</div></th>
 </tr>
 </thead>
 </table>
 </div>

    <div class="" style="overflow: auto;" ratio="*">
        <input type="hidden" value="@Model.Date.Year" name="y" />
        <input type="hidden" value="@Model.Date.Month" name="m" />
        <input type="hidden" value="@Model.Date.Day" name="d" />
<div class="scrollcontainer">
        <table  style="border-collapse:collapse;" class="rpttable">
  <tbody  class="scrollContent">
     @{int index=-1;}
     @foreach(var brand in Model.CarBrands)
     {
             index++;
             var daydata = Model.GetDayData(brand.Id);
             <tr>
             <td><div class="wd50 pd55">@brand.Name
                 <input type="hidden" value="@brand.Id" name="rows[@(index)].CarBrandId" />
                 <input type="hidden" name="rows[@(index)].Date" value="@daydata.Date.ToString("yyyy-MM-dd")" />
                 </div>
             </td>
             <td><div class="wd30 pd55"><input type="text" name="rows[@(index)].CFGGHQXXS" value="@daydata.CFGGHQXXS" class="w20 ipt intinput" /></div></td>
             <td><div class="wd30 pd55"><input type="text" name="rows[@(index)].ZDGGHQXXS" value="@daydata.ZDGGHQXXS" class="w20 ipt intinput" /></div></td>
             <td><div class="wd30 pd55"><input type="text" name="rows[@(index)].DHDJBDJKHS" value="@daydata.DHDJBDJKHS" class="w20 ipt intinput" /></div></td>
             <td><div class="wd30 pd55"><input type="text" name="rows[@(index)].H12DHHFS" value="@daydata.H12DHHFS" class="w20 ipt intinput" /></div></td>
             <td><div class="wd30 pd55"><input type="text" name="rows[@(index)].XSZLDKHS" value="@daydata.XSZLDKHS" class="w20 ipt intinput" /></div></td>
             <td><div class="wd30 pd55"><input type="text" name="rows[@(index)].LDKHXXLRS" value="@daydata.LDKHXXLRS" class="w20 ipt intinput" /></div></td>
             <td><div class="wd30 pd55"><input type="text" name="rows[@(index)].JCS" value="@daydata.JCS" class="w20 ipt intinput" /></div></td>
             <td><div class="wd30 pd55"><input type="text" name="rows[@(index)].DHXSMB" value="@daydata.DHXSMB" class="w20 ipt intinput" /></div></td>
             <td><div class="wd30 pd55"><input type="text" name="rows[@(index)].WZ1HQXXS" value="@daydata.WZ1HQXXS" class="w20 ipt intinput" /></div></td>
             </tr>
        
     }
 </tbody></table>
 </div>
        

    </div>
    @if (!Model.IsConfirmed || CurrentUser.Position == S4Store.Domain.Position.SystemManager)
    {
        <div class="formBar" ratio="#30">
            <ul>
                <li><div class="simplebutton"><div class="r"><button type="button" class="submit">保存</button></div></div></li>	
                <li>确认数据：<input type="checkbox" name="isconfirm" value="true" /></li>	
            </ul>
        </div>
    }
</div>
</form>